package cn.edu.neusoft.yyd208.foodorder.model;

import cn.edu.neusoft.yyd208.foodorder.bean.RegisterBean;
import cn.edu.neusoft.yyd208.foodorder.iface.RegisterIface;
import cn.edu.neusoft.yyd208.foodorder.listener.TListener;
import cn.edu.neusoft.yyd208.foodorder.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;


public class RegisterModel extends RetrofitBaseModel implements RegisterIface<RegisterBean>{
    private Service service;
    private Retrofit retrofit;
    public RegisterModel(){
        retrofit=getRetrofit();
    }

    @Override
    public void getRegisterMessage(String username, String userpass, String mobilenum, String address, String comment, TListener<RegisterBean> tListener) {
        service=getService();
        Call<RegisterBean> call=service.getregister(username,userpass,mobilenum,address,comment);
        callenqueue(call,tListener);
    }
}
